<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="genusDetail.title"/></title>
    <style>
		p.accordingTo {
			color: #999999;
		}
    </style>
</head>
    <h1><i><s:property value="genus.canonical"/></i> <s:property value="genus.authorship"/></h1>
    <fmt:message key="genusDetail.datasources"/>
	<s:iterator value="genus.genusUsages">
		<s:if test="remoteId != null">
			<a href="%{remoteId.remoteId}"><s:property value="agiDatasource.name"/></a><br/>
		</s:if>
		<s:else>
			<s:property value="agiDatasource.name"/><br/>
		</s:else>
	</s:iterator>
	
	<s:iterator value="groupedGenusRelationships">
		<table>
			<caption><s:property value="key"/></caption>
			
			<s:set name="genera">
				<s:property value="value"/>
			</s:set>
			
			<s:iterator value="genera">
				<tr>
					<s:property value="fromGenus.canonical"/>					
				</tr>
			</s:iterator>
		</table>
	</s:iterator>

<script type="text/javascript">
    Form.focusFirstElement($("genusForm"));
</script>